package cn.sciento.transfer.infra.repository.impl;

import java.util.Date;
import cn.sciento.mybatis.base.impl.BaseRepositoryImpl;
import cn.sciento.transfer.domain.entity.EventSend;
import cn.sciento.transfer.domain.repository.EventSendRepository;
import cn.sciento.transfer.infra.mapper.EventSendMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class EventSendRepositoryImpl extends BaseRepositoryImpl<EventSend> implements EventSendRepository {
  @Autowired
  private EventSendMapper eventSendMapper;
  
  public Long selectEventByTimeStamp(Date timeStamp, String service, String tableName, Long tenantId) {
    return this.eventSendMapper.selectEventByTimeStamp(timeStamp, service, tableName, tenantId);
  }
}
